package com.vf.admin.client.dao;

import com.vf.admin.common.db.BaseDao;
import com.vf.admin.miaodong.entity.PopupLog;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

/**
 * 轮播图管理
 */
@Repository
public class PopupLogDao extends BaseDao<PopupLog> {

    public PopupLog findOne(Integer userId, Integer type) {
        ArrayList<Object> paramList = new ArrayList<>();
        StringBuilder sbStr = new StringBuilder("select * from popup_log where userId= "+ userId +" and type = "+ type);
        String sql = sbStr.toString();
        return this.queryObj(sql, paramList, PopupLog.class);
    }
}
